js object to querystring

148

object to query string js -

const obj = {foo: "hi there", bar: "100%" };
const params = new URLSearchParams(obj).toString();

Comments

Submit
0 Comments